body {
  background: #f8fafc;
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: #1e293b;
  overflow: hidden;
}

/* 隐藏滚动条但保持可滚动 */
::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.key-manager, .server-connection {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 32px 24px;
  margin: 24px 0;
  width: 380px;
  max-width: 90vw;
}

.key-manager h2, .server-connection h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #0f172a;
  font-weight: 600;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.primary-button {
  background: #3b82f6;
  color: white;
}

.primary-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.secondary-button {
  background: #f1f5f9;
  color: #475569;
}

.secondary-button:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.primary-button:disabled, .secondary-button:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.status-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.status-message.error {
  color: #ef4444;
  background: #fef2f2;
}

.warning-text {
  color: #f59e0b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #fffbeb;
  border-radius: 0.5rem;
}

.server-connection .form-group {
  margin-bottom: 1.25rem;
}

.server-connection label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #475569;
}

.server-connection input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: #f8fafc;
  box-sizing: border-box;
}

.server-connection input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.center-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.5px;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 800px;
  position: relative;
  padding: 0 1rem;
  box-sizing: border-box;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 1;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #e2e8f0;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.step.current .step-number {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
  transform: scale(1.1);
}

.step.completed .step-number {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.step-title {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.step.current .step-title {
  color: #0f172a;
  font-weight: 600;
}

.section {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  width: 100%;
  max-width: 800px;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.section:hover {
  transform: translateY(-2px);
}

.key-manager .key-status {
  margin-bottom: 1rem;
}

.key-manager .status-info {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 1em;
}

@media screen and (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }
  
  .center-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group button {
    width: 100%;
  }
  
  .step-indicator {
    margin-bottom: 2rem;
  }
  
  .step-title {
    font-size: 0.75rem;
  }
}

@media screen and (min-width: 1920px) {
  .app-container {
    max-width: 1400px;
  }
  
  .section {
    padding: 2.5rem;
  }
  
  .center-title {
    font-size: 3rem;
  }
}

@media screen and (min-width: 2560px) {
  .app-container {
    max-width: 1800px;
  }
  
  .section {
    padding: 3rem;
  }
  
  .center-title {
    font-size: 3.5rem;
  }
}

/* 图标样式 */
.button-icon {
  font-size: 1.1em;
}